<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateExporterTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateExporterLabel_idExporter}" for="idExporter" />
                    <h:inputText id="idExporter" value="#{exporterController.selected.idExporter}" title="#{bundle.CreateExporterTitle_idExporter}" required="true" requiredMessage="#{bundle.CreateExporterRequiredMessage_idExporter}"/>
                    <h:outputLabel value="#{bundle.CreateExporterLabel_exporterName}" for="exporterName" />
                    <h:inputText id="exporterName" value="#{exporterController.selected.exporterName}" title="#{bundle.CreateExporterTitle_exporterName}" required="true" requiredMessage="#{bundle.CreateExporterRequiredMessage_exporterName}"/>
                    <h:outputLabel value="#{bundle.CreateExporterLabel_phone}" for="phone" />
                    <h:inputText id="phone" value="#{exporterController.selected.phone}" title="#{bundle.CreateExporterTitle_phone}" />
                    <h:outputLabel value="#{bundle.CreateExporterLabel_exporterCode}" for="exporterCode" />
                    <h:inputText id="exporterCode" value="#{exporterController.selected.exporterCode}" title="#{bundle.CreateExporterTitle_exporterCode}" required="true" requiredMessage="#{bundle.CreateExporterRequiredMessage_exporterCode}"/>
                    <h:outputLabel value="#{bundle.CreateExporterLabel_other}" for="other" />
                    <h:inputText id="other" value="#{exporterController.selected.other}" title="#{bundle.CreateExporterTitle_other}" />
                    <h:outputLabel value="#{bundle.CreateExporterLabel_balance}" for="balance" />
                    <h:inputText id="balance" value="#{exporterController.selected.balance}" title="#{bundle.CreateExporterTitle_balance}" />
                    <h:outputLabel value="#{bundle.CreateExporterLabel_tempFlag}" for="tempFlag" />
                    <h:inputText id="tempFlag" value="#{exporterController.selected.tempFlag}" title="#{bundle.CreateExporterTitle_tempFlag}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{exporterController.create}" value="#{bundle.CreateExporterSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{exporterController.prepareList}" value="#{bundle.CreateExporterShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateExporterIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
